#include <iostream>
#include <sys/socket.h>
#include <sys/types.h>
#include "Socket.hpp"
#include "TcpServer.hpp"

#include <memory>

// tcp
int main(int argc, char *argv[])
{
    if (argc != 2)
        exit(-1);

    std::unique_ptr<tcpServer> tsp(new tcpServer(atoi(argv[1])));
    tsp->init();
    tsp->run();
}